<?php

namespace Home\Controller;
use Home\Core\VmsSDK;
class ChangeController extends BaseController
{
    public function change()
    {
        $this->display();
    }
    public function change_post(){
      $data = I('post.');
      $data1=session('user_info');
      $userid=$data1['id'];
      $oldpassword=$data['oldPassword'];
      $newpassword=$data['newPassword'];
      $param['userid']=$userid;
      $param['oldpasswd']=substr(md5("$oldpassword"),0,16);
      $param['newpasswd']=substr(md5("$newpassword"),0,16);
      $sdk = new VmsSDK();
      $msgid = $sdk::Change;
      $return = $this->http_request($msgid,$param,'GET');
      $result = $return->result;//获取result的值
      $this->ajaxReturn($result);
    }
}